<?php defined('BASEPATH') OR die('No direct access allowed.');
/**
 * Description of "main-uploadlogo"
 *
 * Created on Jan 26, 2011
 * @author Ramon Gutierrez
 * @copyright Bitstop Network Services Inc.
 * @version 0.1
 */
?>
            <script type="text/javascript">
			// <![CDATA[
              function refreshPhoto() {
	            $('#current').fadeOut("slow").html('<' + 'img src="<?php echo site_url('usr/' . $this->session->userdata('client_id') . '/logo.'); ?>' + $("#logo-type").val() + '?<?php echo time(); ?>" alt="<?php echo $this->lang->line('logo_current'); ?>" title="<?php echo $this->lang->line('logo_current'); ?>" />').fadeIn("slow");
	          }
			// ]]>
            </script>
            <div id="body">
              <div class="sectionhead"><?php echo $this->lang->line('subtitle_upload_logo'); ?></div>
              <div id="response"></div>
              <form id="theform" method="post" action="<?php echo site_url('main/logo_ajax'); ?>">
              <div class="row">
                <div class="firstcol">
                  <span class="label"><?php echo $this->lang->line('logo_current'); ?></span>
                  <div id="current" class="photobox" style="margin-bottom: 10px; padding-bottom: 4px;"><img src="<?php echo $photo; ?>" alt="Current Logo" title="Current Logo" /></div>
                </div>
                <div class="nextcol" style="border-left: 1px solid #333333; padding: 8px 0 8px 15px; margin-top: -8px; margin-bottom: -8px;">
                  <span class="label"><?php echo $this->lang->line('logo_new'); ?></span>
                  <div class="photobox" style="padding-bottom: 4px;">
                    <div id="photobox">
                      <img src="<?php echo site_url('images/no-image-full.png'); ?>" alt="" style="width: 320px; height: 240px; display: block;" />
                    </div>
                    <a class="button-long" id="upload-image" title="<?php echo $this->lang->line('logo_upload_button'); ?>" style="font-size: 0.75em;"><img style="padding-left: 95px;" src="<?php echo site_url('images/btn-upload-logo.png'); ?>" alt="" /><?php echo $this->lang->line('logo_upload_button'); ?></a>
                  </div>
                </div>
                <div style="clear: both;"></div>
                <input type="hidden" name="logo-type" id="logo-type" value="<?php echo $this->session->userdata('logo'); ?>" />
              </div>
              <div style="margin-top: 8px; font-size: 0.9em;">
                <div class="firstcol">
                  <a class="button-form submit" href="javascript:void(null);" id="btn-submit" style="margin-right: 8px;"><img src="<?php echo site_url('images/btn-upload.png'); ?>" alt="" /><?php echo $this->lang->line('upload'); ?></a>
                  <noscript><div><input type="submit" value="<?php echo $this->lang->line('upload'); ?>" /></div></noscript>
                </div>
                <div class="nextcol" style="margin: 0;">
                  <a class="button-form" id="btn-back" style="margin-right: 8px;" href="<?php echo site_url($module); ?>"><img src="<?php echo site_url('images/btn-back.png'); ?>" alt="" /><?php echo $this->lang->line('nav_cancel'); ?></a>
                </div>
                <div class="clear"></div>
              </div>
              </form>
            </div>
